<?php
/**
 * Created by Zhy
 * User: Zhy
 * Date: 2018/6/14
 * Time: 11:56
 */

namespace app\common\model;


use think\Model;

class ArticleSon extends Model
{
    private static $instance;
    
    public function createRow($data){
        $model = self::instance();
        $res = $model->allowField(true)->data($data)->save();
        return $res;
    }
    
    public static function instance()
    {
        if (!(self::$instance instanceof self)) {
            self::$instance = new self();
        }
        return self::$instance;
    }
}